import request from '@/utils/request'

export function addVipService(data) {
  return request({
    url: '/vip',
    method: 'post',
    data
  })
}

export function delVipService(id) {
  return request({
    url: '/vip',
    method: 'delete',
    params: { id: id }
  })
}

export function modifyVipService(id, data) {
  return request({
    url: '/vip',
    method: 'put',
    params: { id: id },
    data
  })
}

export function getVipList() {
  return request({
    url: '/vip',
    method: 'get'
  })
}

export function getVipInfoById(id) {
  return request({
    url: '/vip',
    method: 'get',
    params: {
      id: id
    }
  })
}

export function getVipInfoByType(type) {
  return request({
    url: '/vip',
    method: 'get',
    params: {
      vipType: type
    }
  })
}

